package com.salt.common.constant;

/**
 * @Description 盐云平台常量
 * @Author salt
 * @Date 2020/8/18 15:35
 * @Version 1.0
 */
public interface Common {

    /**
     * 时间格式化
     */
    String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";

    /**
     * 时区
     */
    String TIMEZONE = "GMT+8";

    /**
     * 数据类型
     */
    interface ValueType {
        String SHORT = "short";
        String INT = "int";
        String LONG = "long";
        String FLOAT = "float";
        String DOUBLE = "double";
        String BOOLEAN = "boolean";
        String STRING = "string";
    }

    /**
     * 服务名称 & 服务基地址
     */
    interface Service {
        /**
         * 后台管理中心
         */
        String SALT_ADMIN_SERVICE_NAME = "admin-center";
        String SALT_ADMIN_USER_URL_PREFIX = "/admin/user";
        String SALT_ADMIN_AREA_URL_PREFIX = "/admin/area";
        String SALT_ADMIN_DICT_URL_PREFIX = "/admin/dict";
        String SALT_ADMIN_MENU_URL_PREFIX = "/admin/menu";
        String SALT_ADMIN_OFFICE_URL_PREFIX = "/admin/office";
        String SALT_ADMIN_ROLE_URL_PREFIX = "/admin/role";
        String SALT_ADMIN_TENANT_URL_PREFIX = "/admin/tenant";
        String SALT_ADMIN_FILE_URL_PREFIX = "/admin/file";

        String SALT_SYSTEM_ROLE_URL_PREFIX = "/system/role";

        /**
         * 生产调度中心
         */
        String SALT_WORK_SERVICE_NAME = "salt-work";
        String SALT_WORK_REPORT_URL_PREFIX = "/work/report";
        String SALT_WORK_PLAN_URL_PREFIX = "/work/plan/product";

        /**
         * 排产计划
         */
        String SALT_PLAN_SERVICE_NAME = "salt-plan";
        String SALT_PLAN_URL_PREFIX = "/plan/product";
        /**
         * 消息通知
         */
        String SALT_NOTICE_SERVICE_NAME = "salt-notice";
        String SALT_NOTICE_SEND_URL_PREFIX = "/notice/send";
        String SALT_NOTICE_TYPE_URL_PREFIX = "/notice/type";
        String SALT_NOTICE_USER_URL_PREFIX = "/notice/user";
        String SALT_NOTICE_DATA_URL_PREFIX = "/notice/data";

        /**
         * 工作流
         */
        String SALT_FLOW_SERVICE_NAME = "salt-flow";
        String SALT_FLOW_BUSINESS_URL_PREFIX = "/flow/business";
        String SALT_FLOW_TASK_URL_PREFIX = "/flow/task";
        /**
         * 物联网
         */
        String SALT_IOT_MANAGER_SERVICE_NAME = "salt-iot-manager";
        String SALT_IOT_MANAGER_PROFILE_URL_PREFIX = "/iot/manager/profile";
        /**
         * TNPM
         */
        String SALT_TNPMYT_SERVICE_NAME = "salt-tnpmyt";
        String SALT_TNPMYT_PROFILE_URL_PREFIX = "/tnpm/fault";
        String SALT_TNPMYT_HIDDEN_URL_PREFIX = "/tnpm/hidden";
        /**
         * 质量
         */
        String SALT_QUALITY_SERVICE_NAME = "salt-quality";
        String SALT_QUALITY_BOOK_URL_PREFIX = "/quality/book";
        String SALT_QUALITY_PI_URL_PREFIX = "/quality/pi";

        String SALT_SMART_PATROL_SERVICE_NAME = "salt-patrol";
        String SALT_SMART_PATROL_PROFILE_URL_PREFIX = "/tnpm/fault";

        /**
         * 认证中心
         */
        String SALT_AUTH_SERVICE_NAME = "salt-auth";
        String SALT_AUTH_URL_PREFIX = "/auth/check";
    }
}
